extends "../cTDA_3_1/cTDA_3_1.gd"
func _info():
	pass

func _connect():
	._connect()
var baseId = ""
func _extInit():
	._extInit()
	lv = 4
	attCoe.atk *=1.5
	attCoe.maxHp *= 1.5
	addCdSkill("hd1",11)
	addSkillTxt("食人鱼群：召唤随机数量食人鱼群，攻击所有敌人，每条造成33点真伤伤害，伤害平摊[单个敌人最多5倍物攻伤害][cd:11秒]")

func _castCdSkill(id):
	._castCdSkill(id)
	var chas = getAllChas(1)
	if id == "hd1" :
		if !chas.size():return 
		cst("食人鱼群","000000",position)
		var ncnt = sys.rndRan(minc,maxc)
		var ndmg = ncnt * 33.0 / chas.size()
		ndmg = min(att.atk * 5,ndmg)
		for i in chas:
			hurtChara(i,ndmg,Chara.HurtType.REAL,Chara.AtkType.SKILL)


